package com.yupi.yuoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 内容推荐关联表
 * @TableName content_recommendation
 */
@TableName(value ="content_recommendation")
@Data
public class ContentRecommendation {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 内容ID
     */
    private Long content_id;

    /**
     * 相关内容ID
     */
    private Long related_content_id;

    /**
     * 关联类型：similar-相似内容，series-系列内容，prerequisite-前置内容
     */
    private String relation_type;

    /**
     * 推荐分数
     */
    private BigDecimal score;

    /**
     * 创建时间
     */
    private Date create_time;

    // camelCase getter methods for compatibility
    public Long getContentId() {
        return content_id;
    }

    public Long getRelatedContentId() {
        return related_content_id;
    }

    public String getRelationType() {
        return relation_type;
    }
}